export const HOST = window.location.host;
export const HOST_IP = window.location.hostname;
let BACKGROUNG_URL;
let FRONT_URL;
if (HOST.indexOf("10.200.1.3") != -1) {
    BACKGROUNG_URL = "http://10.200.1.2:8080/enterprise";
    FRONT_URL = "http://10.200.1.3";
} else if (HOST.indexOf("localhost") != -1 || HOST_IP.indexOf("127.0.0.1") != -1) {
    BACKGROUNG_URL = "http://10.200.1.2:8080/enterprise";
    // BACKGROUNG_URL = 'http://221.231.138.86:41085/enterprise';
    // BACKGROUNG_URL = "http://localhost:8088/enterprise";
    FRONT_URL = "http://10.200.1.3";
} else {
    BACKGROUNG_URL = "http://" + HOST + "/back_ground_request"
    FRONT_URL = "http://" + HOST;
}
// export const GIS_ROOT = 'http://221.231.138.86:41082';
export const GIS_ROOT = 'http://10.200.1.3/apps/view';

export const BACKEND_ROOT = BACKGROUNG_URL;

export const ENABLE_HTTP_CACHE = true; // 是否开启缓存
export const CACHE_EXPIRE_TIME = 60000; // 默认缓存过期时间(ms)
export const NET_CACHE_LOG = false; // 展示缓存日志

// 文件预览服务器地址
// export const FILE_PREVIEW_URL = 'http://120.36.4.82:8100/onlinePreview';
export const FILE_PREVIEW_URL = "http://10.200.1.3" + ':8012/onlinePreview';
// 是否启用文件预览服务器
export const ENABLE_FILE_PREVIEW_SERVER = true;